package com.tony.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;

@Slf4j
//@Component
public class TestTask {
    private int count=0;
    @Scheduled(cron="*/4 * * * * ?")
    private void process(){
        log.info("[{}] this is test task runing {}",Thread.currentThread().getName(),(count++));
    }
}